package com.code.day22;

import java.io.FileInputStream;
import java.util.Properties;

public class Demo02Properties {
    public static void main(String[] args) throws Exception {
        Properties properties = new Properties();
        FileInputStream fileInputStream = new FileInputStream("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day22\\pro.properties");
        properties.load(fileInputStream);
        System.out.println(properties);

        String className = properties.getProperty("className");
        Class<?> aClass = Class.forName(className);
        System.out.println(aClass);
    }
}
